package com.canaan.business.domain.bill;

import com.canaan.common.annotation.Excel;
import com.canaan.common.annotation.TableName;
import com.canaan.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
 * 采购退货单据明细对象 wms_purchase_return_bill_detail
 *
 * @author ruoyi
 * @date 2023-03-13
 */
@Data
@ApiModel(description = "wms_purchase_return_bill_detail")
@TableName("wms_purchase_return_bill_detail")
public class PurchaseReturnBillDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty("${comment}")
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    @ApiModelProperty("编号")
    private String no;

    /** 单据编号 */
    @Excel(name = "单据编号")
    @ApiModelProperty("单据编号")
    private String orderNo;

    /** 物料编号 */
    @Excel(name = "物料编号")
    @ApiModelProperty("物料编号")
    private String productNo;

    /** 物料名称 */
    @Excel(name = "物料名称")
    @ApiModelProperty("物料名称")
    private String productName;

    /** 退货数量 */
    @Excel(name = "退货数量")
    @ApiModelProperty("退货数量")
    private Long orderQty;

    /** 数量 */
    @Excel(name = "接收数量")
    @ApiModelProperty("接收数量")
    private Long receivedQty;

    /** 单位 */
    @Excel(name = "单位")
    @ApiModelProperty("单位")
    private String productUnit;

    /** 批次号 */
    @Excel(name = "批次号")
    @ApiModelProperty("批次号")
    private String batchNo;

    /** 是否删除：1是 0否 */
    @ApiModelProperty("单位")
    private String delFlag;

    /** 排序 */
    @Excel(name = "排序")
    @ApiModelProperty("排序")
    private Integer sort;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("no", getNo())
            .append("orderNo", getOrderNo())
            .append("productNo", getProductNo())
            .append("productName", getProductName())
            .append("orderQty", getOrderQty())
            .append("unit", getProductUnit())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("sort", getSort())
            .toString();
    }
}
